import request from '@/utils/request'

// 分页查询所有员工
export const queryPageApi = (name,gender,begin,end,page,pageSize) => request.get('/emps',{params:{name,gender,begin,end,page,pageSize}})
// 根据id查询员工
export const queryEmpByIdApi = (id) => request.get('/emps/' + id)
// 批量删除员工
export const delEmpApi = (ids) => request.delete("/emps?ids=" + ids)
// 新增员工
export const addEmpApi = (emp) => request.post('/emps', emp)
// 修改员工
export const updateyEmpApi = (emp) => request.put('/emps', emp)
// 查询所有员工
export const queryAllEmpApi = () => request.get('/emps/list')